export default class WarnVo {
    public id:string;

    public sebeiId:string;
    /**
     * 告警类型，0一般事件，1橙色事件，3红色告警
     */
    public type:number;
    /**
     * 告警来源，0 ping，1 snmp, 2 modbus 3 rtsp
     */
    public sourceTarget:number;
    /**
     * 设备id_告警来源
     */
    public uuid:string;

    /**
     * 内容
     */
    public content:string;


    public sebeikey:string;

    public sebeiname:string;

    public sebeiTypeName:string;

    public floorName:string;

    public sourceTargetStr = "";

    public typeStr = "";

    public floorNameStr = "";

    constructor(obj:any = null){
       if(obj == null)return;
       this.id = obj.id+"";
       this.sebeiId = obj.sebeiId+""; 	
       this.type = obj.type; 	
       this.sourceTarget = obj.sourceTarget; 	
       this.uuid = obj.uuid; 	
       this.content = obj.content; 
       this.sebeikey = obj.sebeikey;
       this.sebeiname = obj.sebeiname;
       this.sebeiTypeName = obj.sebeiTypeName;
       this.floorName = obj.floorName;
       this.floorNameStr = this.floorName+"F";
    }

    public clone(vo:WarnVo)
    {
       this.id = vo.id+"";
       this.sebeiId = vo.sebeiId+""; 	
       this.type = vo.type; 	
       this.sourceTarget = vo.sourceTarget; 	
       this.uuid = vo.uuid; 	
       this.content = vo.content; 	
       this.sebeikey = vo.sebeikey;
       this.sebeiname = vo.sebeiname;
       this.sebeiTypeName = vo.sebeiTypeName;
       this.floorName = vo.floorName;
    }

}